import request from '../utils/request'
import qs from 'qs'

export function login (data) {
  return request({
    url: '/login/',
    method: 'post',
    data: qs.stringify(data),
  })
}

export function getConfig () {
  return request({
    url: '/config/',
    method: 'post'
  })
}

export function logout () {
  return request({
    url: '/logout/',
    method: 'post'
  })
}
